package com.xyf.service;

import com.seventh.common.pojo.R;
import com.xyf.pojo.entity.TbMaintainShop;
import com.xyf.pojo.vo.MaintainShopVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel(value = "维修厂方法类" , description = "维修厂方法类")
public interface TbMaintainShopService {

    @ApiModelProperty("分页查询维修厂")
    R findAllMaintainShopByPage(Integer currentPage, Integer pageSize, MaintainShopVo maintainShopVo);
    @ApiModelProperty("根据id查询")
    public TbMaintainShop selectById(Integer id);
    @ApiModelProperty("添加维修厂")
    public R insertMaintainShop(TbMaintainShop tbMaintainShop);
    @ApiModelProperty("删除维修厂")
    public R deleteMaintainShop(Integer id);
    @ApiModelProperty("修改维修厂")
    public R updateMaintainShop(TbMaintainShop tbMaintainShop);

    @ApiModelProperty("查询维修厂名（下拉用）")
    List<TbMaintainShop> findAllShops();

    R selectByName(Integer id, String name);



}
